﻿namespace _04.模板模式
{
    public static class ProcessFactory
    {

        public static ProcessTemplate CreateProcess(int num)
        {
            switch (num)
            {
                case 1:
                    return new ProcessImpOne();
                case 2:
                    return new ProcessImpTwo();
                default:
                    return new ProcessImpOne();
            }
        }
    }
}
